{template 'header'}
<ul class="nav nav-tabs">
    <li class=""><a href="{php echo $this->createWeburl('subscribe');}">活动消息管理</a></li>
    <li class="active"><a href="{php echo $this->createWeburl('subscribe', array('op' => 'addShow'));}">添加活动消息</a></li>
</ul>
<form action="" method="post" class="form-horizontal" id="myform" role="form" enctype="multipart/form-data">
    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">提示:!!!!:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12" style="margin-top:8px">
            <span style="color: red">类目 : 休闲娱乐, 搜索标题 ：新活动提醒 选择:活动名称,活动时间, 备注</span><br>
        </div>
    </div>

    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">活动名称:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12" style="margin-top:8px">
            <input class="form-control" name="activityName" placeholder="活动名称" value="{$bool['activityName']}" type="text">
            <small style="color:red;">20个以内字符	可汉字、数字、字母或符号组合</small>
        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">活动时间:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            {php echo tpl_form_field_date('activityTime', $column_data['activityTime'], false)}
        </div>
    </div>

    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">活动备注:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12" style="margin-top:8px">
            <input class="form-control" name="activityText" placeholder="活动备注" value="{$bool['activityText']}" type="text">
            <small style="color:red;">20个以内字符	可汉字、数字、字母或符号组合</small>
        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">跳转地址:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12" style="margin-top:8px">
            <input class="form-control" name="skipUrl" placeholder="跳转地址" value="{$bool['skipUrl']}" type="text">
            <small style="color:red;">bh_bargain/pages/userGame/userGame?id={1} -- {1} 整体替换成id 或者其他路径地址</small>
        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label"></label>
        <div class="" >
            <input type="hidden" name="op" value="{php echo $id ? 'edit' : 'add'}">
            <input type="hidden" name="id" value="{$id}">
            <input type="submit" name="submit" id="submit" value="{php echo $id ? '修改' : '新增'}" class="btn btn-primary">
        </div>
    </div>
</form>
{template 'footer'}


<script>
    $(function () {
        $("input[name='type']").click(function () {
            if ( $(this).val() ==1 || $(this).val() == 3) {
                $('#appId').hide();
                $('#url').show();
            } else if ($(this).val() == 4 ) {
                $('#appId').hide();
                $('#url').hide();
            } else {
                $('#appId').show();
            }
        });
    })


</script>